package com.hkts.sinoiov.sinoiovHisTrack.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 轨迹
 * </p>
 *
 * @author hml
 * @since 2021-08-12
 */
@Data
public class SinoiovHisTrack extends Model<SinoiovHisTrack> {

    private static final long serialVersionUID = 1L;

    private String id;
    /**
     * 记录id
     */
    @ApiModelProperty(value = "记录id")
    private String recordId;
    /**
     * 纬度
     */
    @ApiModelProperty(value = "车辆定位纬度")
    private BigDecimal lat;
    /**
     * 经度
     */
    @ApiModelProperty(value = "车辆定位经度")
    private BigDecimal lon;
    /**
     * GPS 时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "GPS 时间")
    private LocalDateTime gtm;
    /**
     * GPS 速度
     */
    @ApiModelProperty(value = "GPS 速度")
    private String spd;
    /**
     * 里程
     */
    @ApiModelProperty(value = "里程")
    private String mlg;
    /**
     * 海拔
     */
    @ApiModelProperty(value = "海拔")
    private String hgt;
    /**
     * 正北方向夹角
     */
    @ApiModelProperty(value = "正北方向夹角")
    private String agl;
    @ApiModelProperty(value = "抽稀后是否使用(0:使用1:未用)")
    private Integer isUse;
    public static final int USE_YES=0;
    public static final int USE_NO=1;


}
